<?php foreach($show as $s)
{
    echo '<div class="city-leagues container">';
    echo '<h2>'.$s['name'].'</h2>';
    echo '<div class="row">';
    foreach($s['comps'] as $c)
    {
        echo '<section class="league span2">'
                .'<h3>'.$c['name'].'</h3>'
                .'<ul>';
        foreach($c['ligi'] as $li=>$lv)
        {
            echo '<li>'.anchor('league/show_league/'.$li.'/'.remove_pl($lv['code']).'-'.remove_pl($c['code']).'-'.remove_pl($s['name']),'<i class="icon-list"></i> '.$lv['name'],array('class'=>'btn span1')).'</li>';
        }
        echo    '</ul>'
               .'</section>';
    }
    echo '</div></div>';
} ?>